package io.github.biezhi.elves.controller.restful;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import io.github.biezhi.elves.qcc.model.CompBidUrlDate;
import io.github.biezhi.elves.service.QccBidUrlDateService;

@RestController
@RequestMapping("/api/qccbid")
public class QccBidUrlDateControllerRestful {
	
	@Autowired
	private QccBidUrlDateService qccBidUrlDateService;
	
	/**
	 * 根据企业名称查询招投标信息
	 * @param compName
	 * @return
	 * @throws Exception
	 */
	@GetMapping("/bidhtml")
	public List<CompBidUrlDate> listQccBid(@RequestParam("compName") String compName) throws Exception {
		return qccBidUrlDateService.queryCompBidUrlDate(compName);
	}
}
